<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center customerorders_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub customerorders_fd0_0'>
          <view class='flex flex-wrap align-center customerorders_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  customerorders_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='customerorders_fd0_0_c1_c0'>客户订单</text>
          </view>
          <view class='flex flex-wrap align-center justify-end customerorders_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <benben-popup v-model="popupShow1719199109663" :mask="true" :mask-close-able="true" mode='right'>
        <!---筛选弹窗flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout customerorders_flex_1">
          <view class='flex flex-wrap align-center justify-between customerorders_fd1_0'>
            <text class='customerorders_fd1_0_c0'>筛选</text>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
            <view class='flex flex-wrap align-center justify-between customerorders_fd1_1_c0'>
              <text class='customerorders_fd1_1_c0_c0'>婚礼/活动日期</text>
            </view>
            <view class='flex align-center customerorders_fd1_1_c1'>
              <view class='flex flex-wrap align-center justify-center customerorders_fd1_1_c1_c0'>
                <text>开始日期</text>
              </view>

              <view class='flex  customerorders_fd1_1_c1_c1'></view>

              <view class='flex flex-wrap align-center justify-center customerorders_fd1_1_c1_c0'>
                <text>结束日期</text>
              </view>
            </view>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
            <view class='flex flex-wrap align-center justify-center customerorders_fd1_2_c0'>
              <button class='customerorders_fd1_2_c0_c0' @tap.stop="resettingFunc()">重置</button>
              <button class='customerorders_fd1_2_c0_c1' @tap.stop="confirmFunc()">确认</button>
            </view>
          </view>
        </view>

        <!---筛选弹窗flex布局结束-->

      </benben-popup>
      <!--选择器开始 -->
      <benben-picker ref="benbenWritePickerCodepicker2" :visible.sync="pickerDiy1719199235784" :value.sync='startTime'
        mode='date' :picker-height='88' :current='true' :mask-show='true' fields='day' :timeout='true'
        start-year='1990-01-01' end-year='2050-12-31'>
        <template #picker-header>
          <view class='flex flex-wrap align-center justify-between customerorders_picker2_0'>
            <text @tap="$refs.benbenWritePickerCodepicker2.cancel()">取消</text>
            <text>时间选择</text>
            <text class='customerorders_picker2_0_c2'
              @tap="$refs.benbenWritePickerCodepicker2.pickerConfirm()">确认</text>
          </view>
        </template>
      </benben-picker>
      <!--选择器结束 -->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout">
        <view class='flex flex-direction flex-wrap align-stretch customerorders_fd3_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/grzx/scheduledetail/scheduledetail?aid=${item.aid}`"
          v-for='(item,flex3) in goods_List' :key='flex3'>
          <view class='flex flex-wrap align-center'>
            <view class='customerorders_fd3_0_c1_c1_c1_c0'>客户名字：{{item.customerinfo_customer_name}}</view>
            <view class="margin-left-xs">
              <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                v-if="item.customerinfo_customer_types==3" :src='STATIC_URL+"155.png"'></image>
              <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                v-if="item.customerinfo_customer_types==1" :src='STATIC_URL+"152.png"'></image>
              <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                v-if="item.customerinfo_customer_types==2" :src='STATIC_URL+"153.png"'></image>
              <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                v-if="item.customerinfo_customer_types==4" :src='STATIC_URL+"162.png"'></image>
            </view>
          </view>
          <view class='flex flex-wrap align-center margin-top-sm'>
            <text class='customerorders_fd3_0_c1_c1_c1_c0'>客户电话：{{item.customerinfo_customer_phone}}</text>
          </view>
          <view class='flex flex-wrap align-center margin-top-sm'>
            <text
              class='customerorders_fd3_0_c1_c1_c1_c0'>{{item.customerinfo_customer_type_name}}时间：{{item.customerinfo_date_time}}</text>
          </view>
          <view class='flex flex-wrap align-center margin-top-sm'>
            <text class='customerorders_fd3_0_c1_c1_c1_c0'>租赁档期：{{item.ben_time}}至{{item.end_time}}</text>
          </view>
          <view class="bosss"></view>
          <view class="margin-top-sm" v-for="(itemC,indexC) in item.wedding_dress_list" :key="indexC">
            <view class='flex flex-wrap align-center'>
              <text>婚纱编号：</text>
              <text>{{itemC.weddingdress_wedding_dress_number}}</text>
            </view>
            <view class='flex flex-wrap align-center customerorders_fd3_0_c1'>
              <image class='customerorders_fd3_0_c1_c0' mode="aspectFill"
                :src='itemC.weddingdress_wedding_dress_image[0]'>
              </image>
              <view class='flex flex-direction flex-wrap align-stretch flex-sub customerorders_fd3_0_c1_c1'>
                <!-- <view class='flex flex-wrap align-center customerorders_fd3_0_c1_c1_c0'>
                  <text>{{item.customerinfo_customer_name}}</text>
                  <text class='customerorders_fd3_0_c1_c1_c0_c1'>{{item.customerinfo_customer_phone}}</text>
                  <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                    v-if="item.customerinfo_customer_types==3" :src='STATIC_URL+"155.png"'></image>
                  <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                    v-if="item.customerinfo_customer_types==1" :src='STATIC_URL+"152.png"'></image>
                  <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                    v-if="item.customerinfo_customer_types==2" :src='STATIC_URL+"153.png"'></image>
                  <image class='customerorders_fd3_0_c1_c1_c0_c2' mode="aspectFill"
                    v-if="item.customerinfo_customer_types==4" :src='STATIC_URL+"162.png"'></image>
                </view> -->
                <!--    <view class='flex flex-wrap align-center customerorders_fd3_0_c1_c1_c1'>
                  <text class='customerorders_fd3_0_c1_c1_c1_c0'>婚期时间:</text>
                  <text class='self-center'>{{item.customerinfo_date_time}}</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <text class='self-center customerorders_fd3_0_c1_c1_c1_c0'>租赁档期:</text>
                  <text>{{item.ben_time}}至{{item.end_time}}</text>
                </view> -->
              </view>
            </view>
          </view>
        </view>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "pickerDiy1719199235784": false,
        "popupShow1719199109663": false,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataDrandList": [],
        "brand_id": "",
        "min_price": "",
        "max_price": "",
        "sort_type": "desc",
        "sort_field": "1",
        "areaId": "",
        "goods_List": [],
        "showId": "1",
        "dataShopList": [],
        "startTime": "",
        "keyword": "",
        "aid": ""
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      let {
        keyword,
        aid
      } = options
      if (keyword !== undefined) this.keyword = keyword
      if (aid !== undefined) this.aid = aid
      this.getListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {

      //商品管理-商品列表
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.post66c6ad4c8dde3;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          customerinfo_id: this.aid
        }
        this.listData = [];
        this.goods_List = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .bosss {
    // border-top: 2rpx solid #EEEEEE;
    height: 2rpx;
    background-color: #F8D9AD;
    margin-top: 24rpx;

  }

  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .customerorders_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .customerorders_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .customerorders_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .customerorders_fd0_0_c0 {
    width: 120rpx;
  }

  .customerorders_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .customerorders_flex_1 {
    background: #fff;
    width: 566rpx;
    background-size: 100% auto !important;
    position: relative;
    padding: 120rpx 0rpx 0rpx 0rpx;
  }

  .customerorders_fd1_2_c0_c1 {
    background: #E4C391;
    border-radius: 0rpx 36rpx 36rpx 0rpx;
    font-size: 28rpx;
    color: var(--benbenFontColor0);
    width: 246rpx;
    height: 72rpx;
    line-height: 72rpx;
    margin: 0rpx 0rpx 0rpx 18rpx;
  }

  .customerorders_fd1_2_c0_c0 {
    background: #F9E4C3;
    border-radius: 36rpx 0rpx 0rpx 36rpx;
    font-size: 28rpx;
    color: var(--benbenFontColor0);
    width: 246rpx;
    height: 72rpx;
    line-height: 72rpx;
  }

  .customerorders_fd1_2_c0 {
    padding: 24rpx 23rpx 24rpx 23rpx;
    position: absolute;
    top: 1200rpx;
  }

  .customerorders_fd1_1_c1_c1 {
    background: #999999;
    width: 30rpx;
    height: 1rpx;
    margin: 0rpx 24rpx 0rpx 24rpx;
    transform: scaleY(0.5);
    border-radius: 16rpx 16rpx 16rpx 16rpx;
  }

  .customerorders_fd1_1_c1_c0 {
    border: 1px solid #999999;
    border-radius: 40rpx 40rpx 40rpx 40rpx;
    width: 230rpx;
    height: 72rpx;
  }

  .customerorders_fd1_1_c1 {
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .customerorders_fd1_1_c0_c0 {
    line-height: 45rpx;
    font-size: 28rpx;
    font-weight: 700;
    color: #333333;
  }

  .customerorders_fd1_1_c0 {
    margin: 0rpx 24rpx 17rpx 32rpx;
  }

  .customerorders_fd1_0_c0 {
    line-height: 50rpx;
    font-size: 32rpx;
    font-weight: 700;
    color: #333333;
    margin: 0rpx 0rpx 0rpx 32rpx;
  }

  .customerorders_fd1_0 {
    background: #fff;
    margin: 0rpx 0rpx 35rpx 0rpx;
    height: 86rpx;
    background-size: 100% auto !important;
  }

  .customerorders_picker2_0_c2 {
    color: rgba(211, 152, 80, 1);
  }

  .customerorders_picker2_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
    border-radius: 25rpx 25rpx 0rpx 0rpx;
    background-size: 100% auto !important;
  }

  .customerorders_fd3_0_c1_c1_c1_c0 {
    color: rgba(170, 170, 170, 1);
  }

  .customerorders_fd3_0_c1_c1_c1 {
    margin: 24rpx 0rpx 24rpx 0rpx;
  }

  .customerorders_fd3_0_c1_c1_c0_c2 {
    width: 115rpx;
    height: 34rpx;
  }

  .customerorders_fd3_0_c1_c1_c0_c1 {
    margin: 0rpx 24rpx 0rpx 24rpx;
  }

  .customerorders_fd3_0_c1_c1_c0 {
    font-weight: 600;
  }

  .customerorders_fd3_0_c1_c1 {
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .customerorders_fd3_0_c1_c0 {
    width: 144rpx;
    height: 184rpx;
    border-radius: 16rpx;
  }

  .customerorders_fd3_0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .customerorders_fd3_0 {
    background: #FFFFFF;
    border-radius: 24rpx 24rpx 24rpx 24rpx;
    padding: 24rpx 24rpx 24rpx 24rpx;
    margin: 24rpx auto 0rpx auto;
    width: 686rpx;
  }
</style>
